package com.aaa.outbound.service.impl;

import com.aaa.entity.outbound.Pick;
import com.aaa.entity.outbound.PicktaskDetail;
import com.aaa.outbound.mapper.PicktaskDetailMapper;
import com.aaa.outbound.service.PicktaskDetailService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author aaa
 * @since 2020-12-03
 */
@Service
public class PicktaskDetailServiceImpl extends ServiceImpl<PicktaskDetailMapper, PicktaskDetail> implements PicktaskDetailService {
    @Autowired
    protected PicktaskDetailMapper picktaskDetailMapper;

    @Override
    public Page<PicktaskDetail> searchPicktaskDetail(Integer page, Integer limit, PicktaskDetail picktaskDetail) {
        Page<PicktaskDetail> pageinfo=new Page<>(page,limit);
        QueryWrapper<PicktaskDetail> queryWrapper=new QueryWrapper<>();
        this.picktaskDetailMapper.selectPage(pageinfo,queryWrapper);
        return pageinfo;
    }
}
